Class ShortestPath

    • Constructor Detail

      • ShortestPath

        public ShortestPath​(ArgumentsBundle bundle)
        Public Constructor for creating Shortest Path Algorithm.
        Parameters:
        bundle - the ArgumentsBundle containing the arguments for the Algorithm object.
    • Method Detail

      • process

        public java.util.ArrayList<Graph> process​(Graph graph)
        Description copied from interface: Processable
        Processes data.
        Parameters:
        graph - the T type object to process.
        Returns:
        the S type object array produced by the processing.
      • removePaths

        private Graph removePaths​(Graph graph,
                                  Node from,
                                  Node to)
        Private class for removing visited paths that not reach the destination node.
        Parameters:
        graph - the graph containing the shortest path with extra paths Algorithm object.